package com.bean;

public class Question
{
    private int q_id;

    private String q_des;

    private String q_result_A;

    private String q_result_B;

    private String q_result_C;

    private String q_result_D;

    private String q_key;
    
    private int q_key_index;

    private int q_type = 1;

    public Question(String q_des, String q_result_A, String q_result_B,
            String q_result_C, String q_result_D,int q_type, String q_key)
    {
        this.q_des = q_des;
        this.q_result_A = q_result_A;
        this.q_result_B = q_result_B;
        this.q_result_C = q_result_C;
        this.q_result_D = q_result_D;
        this.q_type = q_type;
        this.q_key = q_key;
    }

    public Question(int q_id,String q_key)
    {
        this.q_id = q_id;
        this.q_key = q_key;
    }
    
    public Question()
    {

    }

    public int getQ_id()
    {
        return q_id;
    }

    public void setQ_id(int qId)
    {
        q_id = qId;
    }

    public String getQ_des()
    {
        return q_des;
    }

    public void setQ_des(String qDes)
    {
        q_des = qDes;
    }

    public String getQ_result_A()
    {
        return q_result_A;
    }

    public void setQ_result_A(String qResultA)
    {
        q_result_A = qResultA;
    }

    public String getQ_result_B()
    {
        return q_result_B;
    }

    public void setQ_result_B(String qResultB)
    {
        q_result_B = qResultB;
    }

    public String getQ_result_C()
    {
        return q_result_C;
    }

    public void setQ_result_C(String qResultC)
    {
        q_result_C = qResultC;
    }

    public String getQ_result_D()
    {
        return q_result_D;
    }

    public void setQ_result_D(String qResultD)
    {
        q_result_D = qResultD;
    }

    public int getQ_type()
    {
        return q_type;
    }

    public void setQ_type(int qType)
    {
        q_type = qType;
    }

    public String getQ_key()
    {
        return q_key;
    }

    public void setQ_key(String qKey)
    {
        q_key = qKey;
        if("A".equals(q_key))
        {
            this.q_key_index = 1;
        }
        else if("B".equals(q_key))
        {
            this.q_key_index = 2;
        }
        else if("C".equals(q_key))
        {
            this.q_key_index = 3;
        }
        else if("D".equals(q_key))
        {
            this.q_key_index = 4;
        }
    }

    public int getQ_key_index()
    {
        return q_key_index;
    }

    public void setQ_key_index(int qKeyIndex)
    {
        q_key_index = qKeyIndex;
    }

}
